package cn.tedu.yxcar.product.service.impl;


import cn.tedu.yxcar.product.mapper.DetailMapper;
import cn.tedu.yxcar.product.pojo.vo.DetailListVO;
import cn.tedu.yxcar.product.pojo.vo.DetailShowVO;
import cn.tedu.yxcar.product.service.DetailService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.List;

@Service
@Slf4j
public class DetailServiceImpl implements DetailService {

    @Autowired
    private DetailMapper detailMapper;

    @Override
    public List<DetailListVO> getCarByName(String keywords){
        List<DetailListVO> DetailListVOS = detailMapper.getCarByName(keywords);
        return DetailListVOS;
    }

    @Override
    public List<DetailListVO> selectByPrice(Integer price1,Integer price2){
        List<DetailListVO> DetailListVOS = detailMapper.selectByPrice(price1,price2);
        return DetailListVOS;
    }

    @Override
    public List<DetailShowVO> getCar() {
        List<DetailShowVO> getCarList = detailMapper.getCar();
        return getCarList;
    }

    @Override
    public List<DetailListVO> searPriceBig() {
        List<DetailListVO> DetailListVOS = detailMapper.searPriceBig();
        return DetailListVOS;
    }

    @Override
    public List<DetailListVO> searPriceSmall() {
        List<DetailListVO> DetailListVOS = detailMapper.searPriceSmall();
        return DetailListVOS;
    }

    @Override
    public List<DetailListVO> searTimeNew() {
        List<DetailListVO> DetailListVOS = detailMapper.searTimeNew();
        return DetailListVOS;
    }


    @Override
    public List<DetailListVO> searMileageSmall() {
        List<DetailListVO> DetailListVOS = detailMapper.searMileageSmall();
        return DetailListVOS;
    }

    @Override
    public List<DetailListVO> searOldSmall() {
        List<DetailListVO> DetailListVOS = detailMapper.searOldSmall();
        return DetailListVOS;
    }

    @Override
    public List<DetailListVO> searTypes(String vehicle,Integer caragenum,String carcase){
        List<DetailListVO> DetailListVOS = detailMapper.searTypes(vehicle,caragenum,carcase);
        return DetailListVOS;
    }


}
